<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<title>class Bundler::CLI - bundler: Ruby Standard Library Documentation</title>


<script src="../js/navigation.js" defer></script>
<script src="../js/search.js" defer></script>
<script src="../js/search_index.js" defer></script>
<script src="../js/searcher.js" defer></script>
<script src="../js/darkfish.js" defer></script>

<script src="../js/jquery-3.2.0.min.js"></script>

<script src="../js/vue.min.js"></script>
<script src="../js/js.cookie.min.js"></script>

<link href="../css/fonts.css" rel="stylesheet">
<link id='rdoccss' href="../css/rdoc.css" rel="stylesheet">
<link href="../css/carbon17.css" rel="stylesheet">

<script type="text/javascript">
  var rdoc_rel_prefix = "../";
  var index_rel_prefix = "../";
  var darkModeCsseHref = "../css/rdoc-dm.css"
  var defaultModeCssHref = "../css/rdoc.css"
  // var cssDarkmode = Cookies.get('darkmode');
  
  if( Cookies.get("darkmode") == "true") {
	$('#rdoccss').attr("href", darkModeCsseHref);
}

//  https://cssdeck.com/blog/simple-jquery-stylesheet-switcher/

document.write('<style type="text/css">body{display:none}</style>');

</script>


</head>
<body id="top" role="document" class="class">
  <!-- this is class.html -->

  <div id='actionbar' >
    <div class='wrapper mdiv'>
      <ul class='grids g0'></ul>
    </div> 
    <!-- VERSION HEADER for 3.3.0.preview2 NOT FOUND -->
  </div> <!-- end action bar -->

  <div class='wrapper hdiv'>

    


    <nav id='vapp' role="navigation">
    <div id="project-navigation">
      <div id="home-section" role="region" title="Quick navigation" class="nav-section">
  <h2><a href="../index.html" rel="home">Home</a></h2>

  <div id="table-of-contents-navigation"  >
    <a href="../table_of_contents.html#pages">Pages</a>
    <a href="../table_of_contents.html#classes">Classes</a>
    <a href="../table_of_contents.html#methods">Methods</a>
  </div>
</div>

      <div id="search-section" role="search" class="project-section initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <div id="search-field-wrapper">
      <input id="search-field" role="combobox" aria-label="Search"
             aria-autocomplete="list" aria-controls="search-results"
             type="text" name="search" placeholder="Search" spellcheck="false"
             title="Type to search, Up and Down to navigate, Enter to load">
    </div>

    <ul id="search-results" aria-label="Search Results"
        aria-busy="false" aria-expanded="false"
        aria-atomic="false" class="initially-hidden"></ul>
  </form>
</div>

    </div>


    

    <button id='toggleThing' @click="toggleNav()" >Show/hide navigation</button>
    <div :class="isOpen ? 'block' : 'hidden' " id='toggleMe'>
      <div id="class-metadata">
        
        
<div id="parent-class-section" class="nav-section">
  <h3>Parent</h3>

  <p class="link">Thor
</div>

        
<div id="includes-section" class="nav-section">
  <h3>Included Modules</h3>

  <ul class="link-list">
    <li><a class="include" href="Thor/Actions.html">Bundler::Thor::Actions</a>
  </ul>
</div>

        
        
<!-- Method Quickref -->
<div id="method-list-section" class="nav-section">
  <h3>Methods</h3>

  <ul class="link-list" role="directory">
    <li ><a href="#method-c-aliases_for">::aliases_for</a>
    <li ><a href="#method-c-all_aliases">::all_aliases</a>
    <li ><a href="#method-c-check_deprecated_ext_option">::check_deprecated_ext_option</a>
    <li ><a href="#method-c-deprecated_ext_value-3F">::deprecated_ext_value?</a>
    <li class="calls-super" ><a href="#method-c-dispatch">::dispatch</a>
    <li class="calls-super" ><a href="#method-c-handle_no_command_error">::handle_no_command_error</a>
    <li class="calls-super" ><a href="#method-c-new">::new</a>
    <li ><a href="#method-c-reformatted_help_args">::reformatted_help_args</a>
    <li ><a href="#method-c-source_root">::source_root</a>
    <li class="calls-super" ><a href="#method-c-start">::start</a>
    <li ><a href="#method-i-add">#add</a>
    <li ><a href="#method-i-auto_install">#auto_install</a>
    <li ><a href="#method-i-binstubs">#binstubs</a>
    <li ><a href="#method-i-cache">#cache</a>
    <li ><a href="#method-i-check">#check</a>
    <li ><a href="#method-i-clean">#clean</a>
    <li ><a href="#method-i-cli_help">#cli_help</a>
    <li ><a href="#method-i-console">#console</a>
    <li ><a href="#method-i-current_command">#current_command</a>
    <li ><a href="#method-i-doctor">#doctor</a>
    <li ><a href="#method-i-env">#env</a>
    <li ><a href="#method-i-exec">#exec</a>
    <li ><a href="#method-i-flag_deprecation">#flag_deprecation</a>
    <li ><a href="#method-i-fund">#fund</a>
    <li ><a href="#method-i-gem">#gem</a>
    <li class="calls-super" ><a href="#method-i-help">#help</a>
    <li ><a href="#method-i-info">#info</a>
    <li ><a href="#method-i-init">#init</a>
    <li ><a href="#method-i-inject">#inject</a>
    <li ><a href="#method-i-install">#install</a>
    <li ><a href="#method-i-issue">#issue</a>
    <li ><a href="#method-i-licenses">#licenses</a>
    <li ><a href="#method-i-list">#list</a>
    <li ><a href="#method-i-lock">#lock</a>
    <li ><a href="#method-i-open">#open</a>
    <li ><a href="#method-i-outdated">#outdated</a>
    <li ><a href="#method-i-platform">#platform</a>
    <li ><a href="#method-i-print_command">#print_command</a>
    <li ><a href="#method-i-pristine">#pristine</a>
    <li ><a href="#method-i-remembered_flag_deprecation">#remembered_flag_deprecation</a>
    <li ><a href="#method-i-remembered_negative_flag_deprecation">#remembered_negative_flag_deprecation</a>
    <li ><a href="#method-i-remove">#remove</a>
    <li ><a href="#method-i-show">#show</a>
    <li ><a href="#method-i-update">#update</a>
    <li ><a href="#method-i-version">#version</a>
    <li ><a href="#method-i-viz">#viz</a>
    <li ><a href="#method-i-warn_on_outdated_bundler">#warn_on_outdated_bundler</a>
  </ul>
</div>

      </div>
     </div>
    </nav>


    <div id='extraz'><div class='adzbox-index'  >
      
     </div>         
    </div>

    <main role="main" aria-labelledby="class-Bundler::CLI">
    <h1 id="class-Bundler::CLI" class="class">
      class Bundler::CLI
    </h1>

    <section class="description">
    
    </section>

      <section id="5Buntitled-5D" class="documentation-section">


      <section class="constants-list">
      <header>
      <h3>Constants</h3>
      </header>
      <dl>
          <dt id="AUTO_INSTALL_CMDS">AUTO_INSTALL_CMDS
          <dd>
          <dt id="COMMAND_ALIASES">COMMAND_ALIASES
          <dd>
          <dt id="EXTENSIONS">EXTENSIONS
          <dd>
          <dt id="PARSEABLE_COMMANDS">PARSEABLE_COMMANDS
          <dd>
        </dl>
        </section>



                <section id="public-class-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Public Class Methods</h3>
                </header>

                  <div id="method-c-aliases_for" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">aliases_for</span><span
                                class="method-args">(command_name)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="aliases_for-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 54</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">aliases_for</span>(<span class="ruby-identifier">command_name</span>)
  <span class="ruby-constant">COMMAND_ALIASES</span>.<span class="ruby-identifier">select</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">_</span><span class="ruby-operator">|</span> <span class="ruby-identifier">k</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">command_name</span> }.<span class="ruby-identifier">invert</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-c-all_aliases" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">all_aliases</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="all_aliases-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 40</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">all_aliases</span>
  <span class="ruby-ivar">@all_aliases</span> <span class="ruby-operator">||=</span> <span class="ruby-keyword">begin</span>
                     <span class="ruby-identifier">command_aliases</span> = {}

                     <span class="ruby-constant">COMMAND_ALIASES</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">name</span>, <span class="ruby-identifier">aliases</span><span class="ruby-operator">|</span>
                       <span class="ruby-constant">Array</span>(<span class="ruby-identifier">aliases</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">one_alias</span><span class="ruby-operator">|</span>
                         <span class="ruby-identifier">command_aliases</span>[<span class="ruby-identifier">one_alias</span>] = <span class="ruby-identifier">name</span>
                       <span class="ruby-keyword">end</span>
                     <span class="ruby-keyword">end</span>

                     <span class="ruby-identifier">command_aliases</span>
                   <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-c-check_deprecated_ext_option" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">check_deprecated_ext_option</span><span
                                class="method-args">(arguments)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="check_deprecated_ext_option-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 763</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">check_deprecated_ext_option</span>(<span class="ruby-identifier">arguments</span>)
  <span class="ruby-comment"># when deprecated version of `--ext` is called</span>
  <span class="ruby-comment"># print out deprecation warning and pretend `--ext=c` was provided</span>
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">deprecated_ext_value?</span>(<span class="ruby-identifier">arguments</span>)
    <span class="ruby-constant">SharedHelpers</span>.<span class="ruby-identifier">major_deprecation</span> <span class="ruby-value">2</span>, <span class="ruby-string">&quot;Extensions can now be generated using C or Rust, so `--ext` with no arguments has been deprecated. Please select a language, e.g. `--ext=rust` to generate a Rust extension. This gem will now be generated as if `--ext=c` was used.&quot;</span>
    <span class="ruby-identifier">arguments</span>[<span class="ruby-identifier">arguments</span>.<span class="ruby-identifier">index</span>(<span class="ruby-string">&quot;--ext&quot;</span>)] = <span class="ruby-string">&quot;--ext=c&quot;</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-c-deprecated_ext_value-3F" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">deprecated_ext_value?</span><span
                                class="method-args">(arguments)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="deprecated_ext_value-3F-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 772</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">deprecated_ext_value?</span>(<span class="ruby-identifier">arguments</span>)
  <span class="ruby-identifier">index</span> = <span class="ruby-identifier">arguments</span>.<span class="ruby-identifier">index</span>(<span class="ruby-string">&quot;--ext&quot;</span>)
  <span class="ruby-identifier">next_argument</span> = <span class="ruby-identifier">arguments</span>[<span class="ruby-identifier">index</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>]

  <span class="ruby-comment"># it is ok when --ext is followed with valid extension value</span>
  <span class="ruby-comment"># for example `bundle gem hello --ext c`</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">EXTENSIONS</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">next_argument</span>)

  <span class="ruby-comment"># deprecated call when --ext is called with no value in last position</span>
  <span class="ruby-comment"># for example `bundle gem hello_gem --ext`</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">next_argument</span>.<span class="ruby-identifier">nil?</span>

  <span class="ruby-comment"># deprecated call when --ext is followed by other parameter</span>
  <span class="ruby-comment"># for example `bundle gem --ext --no-ci hello_gem`</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">next_argument</span>.<span class="ruby-identifier">start_with?</span>(<span class="ruby-string">&quot;-&quot;</span>)

  <span class="ruby-comment"># deprecated call when --ext is followed by gem name</span>
  <span class="ruby-comment"># for example `bundle gem --ext hello_gem`</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">next_argument</span>

  <span class="ruby-keyword">false</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-c-dispatch" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">dispatch</span><span
                                class="method-args">(*)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              
                                <div class="method-calls-super">
                                  Calls superclass method
                                  
                              </div>

                              <div class="method-source-code" id="dispatch-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 33</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">dispatch</span>(<span class="ruby-operator">*</span>)
  <span class="ruby-keyword">super</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
    <span class="ruby-identifier">i</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:print_command</span>)
    <span class="ruby-identifier">i</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:warn_on_outdated_bundler</span>)
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-c-handle_no_command_error" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">handle_no_command_error</span><span
                                class="method-args">(command, has_namespace = $thor_runner)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              
                                <div class="method-calls-super">
                                  Calls superclass method
                                  
                              </div>

                              <div class="method-source-code" id="handle_no_command_error-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 142</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">handle_no_command_error</span>(<span class="ruby-identifier">command</span>, <span class="ruby-identifier">has_namespace</span> = <span class="ruby-identifier">$thor_runner</span>)
  <span class="ruby-keyword">if</span> <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">feature_flag</span>.<span class="ruby-identifier">plugins?</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">Bundler</span><span class="ruby-operator">::</span><span class="ruby-constant">Plugin</span>.<span class="ruby-identifier">command?</span>(<span class="ruby-identifier">command</span>)
    <span class="ruby-keyword">return</span> <span class="ruby-constant">Bundler</span><span class="ruby-operator">::</span><span class="ruby-constant">Plugin</span>.<span class="ruby-identifier">exec_command</span>(<span class="ruby-identifier">command</span>, <span class="ruby-constant">ARGV</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>])
  <span class="ruby-keyword">end</span>

  <span class="ruby-keyword">return</span> <span class="ruby-keyword">super</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">command_path</span> = <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">which</span>(<span class="ruby-node">&quot;bundler-#{command}&quot;</span>)

  <span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">exec</span>(<span class="ruby-identifier">command_path</span>, <span class="ruby-operator">*</span><span class="ruby-constant">ARGV</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>])
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-c-new" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">new</span><span
                                class="method-args">(*args)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              
                                <div class="method-calls-super">
                                  Calls superclass method
                                  <a href="Thor/Actions.html#method-c-new"><code>Bundler::Thor::Actions::new</code></a>
                              </div>

                              <div class="method-source-code" id="new-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 58</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
  <span class="ruby-keyword">super</span>

  <span class="ruby-identifier">custom_gemfile</span> = <span class="ruby-identifier">options</span>[<span class="ruby-value">:gemfile</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">settings</span>[<span class="ruby-value">:gemfile</span>]
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">custom_gemfile</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-operator">!</span><span class="ruby-identifier">custom_gemfile</span>.<span class="ruby-identifier">empty?</span>
    <span class="ruby-constant">Bundler</span><span class="ruby-operator">::</span><span class="ruby-constant">SharedHelpers</span>.<span class="ruby-identifier">set_env</span> <span class="ruby-string">&quot;BUNDLE_GEMFILE&quot;</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">custom_gemfile</span>)
    <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">reset_settings_and_root!</span>
  <span class="ruby-keyword">end</span>

  <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">self_manager</span>.<span class="ruby-identifier">restart_with_locked_bundler_if_needed</span>

  <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">settings</span>.<span class="ruby-identifier">set_command_option_if_given</span> <span class="ruby-value">:retry</span>, <span class="ruby-identifier">options</span>[<span class="ruby-value">:retry</span>]

  <span class="ruby-identifier">current_cmd</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">last</span>[<span class="ruby-value">:current_command</span>].<span class="ruby-identifier">name</span>
  <span class="ruby-identifier">auto_install</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">AUTO_INSTALL_CMDS</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">current_cmd</span>)
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">UnknownArgumentError</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-identifier">e</span>
  <span class="ruby-identifier">raise</span> <span class="ruby-constant">InvalidOption</span>, <span class="ruby-identifier">e</span>.<span class="ruby-identifier">message</span>
<span class="ruby-keyword">ensure</span>
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">options</span> <span class="ruby-operator">||=</span> {}
  <span class="ruby-identifier">unprinted_warnings</span> = <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">unprinted_warnings</span>
  <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">ui</span> = <span class="ruby-constant">UI</span><span class="ruby-operator">::</span><span class="ruby-constant">Shell</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>)
  <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">level</span> = <span class="ruby-string">&quot;debug&quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-string">&quot;verbose&quot;</span>]
  <span class="ruby-identifier">unprinted_warnings</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">w</span><span class="ruby-operator">|</span> <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">warn</span>(<span class="ruby-identifier">w</span>) }
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-c-reformatted_help_args" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">reformatted_help_args</span><span
                                class="method-args">(args)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Reformat the arguments passed to bundle that include a –help flag into the corresponding ‘bundle help #{command}` call</p>

                              <div class="method-source-code" id="reformatted_help_args-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 736</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">reformatted_help_args</span>(<span class="ruby-identifier">args</span>)
  <span class="ruby-identifier">bundler_commands</span> = (<span class="ruby-constant">COMMAND_ALIASES</span>.<span class="ruby-identifier">keys</span> <span class="ruby-operator">+</span> <span class="ruby-constant">COMMAND_ALIASES</span>.<span class="ruby-identifier">values</span>).<span class="ruby-identifier">flatten</span>

  <span class="ruby-identifier">help_flags</span> = <span class="ruby-node">%w[--help -h]</span>
  <span class="ruby-identifier">exec_commands</span> = [<span class="ruby-string">&quot;exec&quot;</span>] <span class="ruby-operator">+</span> <span class="ruby-constant">COMMAND_ALIASES</span>[<span class="ruby-string">&quot;exec&quot;</span>]

  <span class="ruby-identifier">help_used</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">index</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">help_flags</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">a</span> }
  <span class="ruby-identifier">exec_used</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">index</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">exec_commands</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">a</span> }

  <span class="ruby-identifier">command</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">find</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">a</span><span class="ruby-operator">|</span> <span class="ruby-identifier">bundler_commands</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">a</span> }
  <span class="ruby-identifier">command</span> = <span class="ruby-identifier">all_aliases</span>[<span class="ruby-identifier">command</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">all_aliases</span>[<span class="ruby-identifier">command</span>]

  <span class="ruby-keyword">if</span> <span class="ruby-identifier">exec_used</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">help_used</span>
    <span class="ruby-keyword">if</span> <span class="ruby-identifier">exec_used</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">help_used</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
      <span class="ruby-node">%w[help exec]</span>
    <span class="ruby-keyword">else</span>
      <span class="ruby-identifier">args</span>
    <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">help_used</span>
    <span class="ruby-identifier">args</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">dup</span>
    <span class="ruby-identifier">args</span>.<span class="ruby-identifier">delete_at</span>(<span class="ruby-identifier">help_used</span>)
    [<span class="ruby-string">&quot;help&quot;</span>, <span class="ruby-identifier">command</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">args</span>].<span class="ruby-identifier">flatten</span>.<span class="ruby-identifier">compact</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-identifier">args</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-c-source_root" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">source_root</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="source_root-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 622</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">source_root</span>
  <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-string">&quot;templates&quot;</span>, <span class="ruby-identifier">__dir__</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-c-start" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">start</span><span
                                class="method-args">(*)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              
                                <div class="method-calls-super">
                                  Calls superclass method
                                  
                              </div>

                              <div class="method-source-code" id="start-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 25</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier ruby-title">start</span>(<span class="ruby-operator">*</span>)
  <span class="ruby-identifier">check_deprecated_ext_option</span>(<span class="ruby-constant">ARGV</span>) <span class="ruby-keyword">if</span> <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-string">&quot;--ext&quot;</span>)

  <span class="ruby-keyword">super</span>
<span class="ruby-keyword">ensure</span>
  <span class="ruby-constant">Bundler</span><span class="ruby-operator">::</span><span class="ruby-constant">SharedHelpers</span>.<span class="ruby-identifier">print_major_deprecations!</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                          </section>

                <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Public Instance Methods</h3>
                </header>

                  <div id="method-i-add" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">add</span><span
                                class="method-args">(*gems)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="add-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 390</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">add</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">gems</span>)
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/add&quot;</span>
  <span class="ruby-constant">Add</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>.<span class="ruby-identifier">dup</span>, <span class="ruby-identifier">gems</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-binstubs" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">binstubs</span><span
                                class="method-args">(*gems)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="binstubs-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 368</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">binstubs</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">gems</span>)
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/binstubs&quot;</span>
  <span class="ruby-constant">Binstubs</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>, <span class="ruby-identifier">gems</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-cache" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">cache</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="cache-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 459</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">cache</span>
  <span class="ruby-constant">SharedHelpers</span>.<span class="ruby-identifier">major_deprecation</span> <span class="ruby-value">2</span>,
    <span class="ruby-string">&quot;The `--all` flag is deprecated because it relies on being &quot;</span> \
    <span class="ruby-string">&quot;remembered across bundler invocations, which bundler will no longer &quot;</span> \
    <span class="ruby-string">&quot;do in future versions. Instead please use `bundle config set cache_all true`, &quot;</span> \
    <span class="ruby-string">&quot;and stop using this flag&quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-string">&quot;--all&quot;</span>)

  <span class="ruby-constant">SharedHelpers</span>.<span class="ruby-identifier">major_deprecation</span> <span class="ruby-value">2</span>,
    <span class="ruby-string">&quot;The `--path` flag is deprecated because its semantics are unclear. &quot;</span> \
    <span class="ruby-string">&quot;Use `bundle config cache_path` to configure the path of your cache of gems, &quot;</span> \
    <span class="ruby-string">&quot;and `bundle config path` to configure the path where your gems are installed, &quot;</span> \
    <span class="ruby-string">&quot;and stop using this flag&quot;</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-string">&quot;--path&quot;</span>)

  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/cache&quot;</span>
  <span class="ruby-constant">Cache</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-check" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">check</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="check-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 177</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">check</span>
  <span class="ruby-identifier">remembered_flag_deprecation</span>(<span class="ruby-string">&quot;path&quot;</span>)

  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/check&quot;</span>
  <span class="ruby-constant">Check</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-clean" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">clean</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="clean-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 631</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">clean</span>
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/clean&quot;</span>
  <span class="ruby-constant">Clean</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>.<span class="ruby-identifier">dup</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-cli_help" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">cli_help</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="cli_help-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 87</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">cli_help</span>
  <span class="ruby-identifier">version</span>
  <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">info</span> <span class="ruby-string">&quot;\n&quot;</span>

  <span class="ruby-identifier">primary_commands</span> = [<span class="ruby-string">&quot;install&quot;</span>, <span class="ruby-string">&quot;update&quot;</span>, <span class="ruby-string">&quot;cache&quot;</span>, <span class="ruby-string">&quot;exec&quot;</span>, <span class="ruby-string">&quot;config&quot;</span>, <span class="ruby-string">&quot;help&quot;</span>]

  <span class="ruby-identifier">list</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">printable_commands</span>(<span class="ruby-keyword">true</span>)
  <span class="ruby-identifier">by_name</span> = <span class="ruby-identifier">list</span>.<span class="ruby-identifier">group_by</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">name</span>, <span class="ruby-identifier">_message</span><span class="ruby-operator">|</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp">/^bundle (\w+)/</span>)[<span class="ruby-value">1</span>] }
  <span class="ruby-identifier">utilities</span> = <span class="ruby-identifier">by_name</span>.<span class="ruby-identifier">keys</span>.<span class="ruby-identifier">sort</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">primary_commands</span>
  <span class="ruby-identifier">primary_commands</span>.<span class="ruby-identifier">map!</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span> (<span class="ruby-identifier">by_name</span>[<span class="ruby-identifier">name</span>] <span class="ruby-operator">||</span> <span class="ruby-identifier">raise</span>(<span class="ruby-node">&quot;no primary command #{name}&quot;</span>)).<span class="ruby-identifier">first</span> }
  <span class="ruby-identifier">utilities</span>.<span class="ruby-identifier">map!</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span> <span class="ruby-identifier">by_name</span>[<span class="ruby-identifier">name</span>].<span class="ruby-identifier">first</span> }

  <span class="ruby-identifier">shell</span>.<span class="ruby-identifier">say</span> <span class="ruby-string">&quot;Bundler commands:\n\n&quot;</span>

  <span class="ruby-identifier">shell</span>.<span class="ruby-identifier">say</span> <span class="ruby-string">&quot;  Primary commands:\n&quot;</span>
  <span class="ruby-identifier">shell</span>.<span class="ruby-identifier">print_table</span>(<span class="ruby-identifier">primary_commands</span>, <span class="ruby-value">:indent</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-value">4</span>, <span class="ruby-value">:truncate</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-keyword">true</span>)
  <span class="ruby-identifier">shell</span>.<span class="ruby-identifier">say</span>
  <span class="ruby-identifier">shell</span>.<span class="ruby-identifier">say</span> <span class="ruby-string">&quot;  Utilities:\n&quot;</span>
  <span class="ruby-identifier">shell</span>.<span class="ruby-identifier">print_table</span>(<span class="ruby-identifier">utilities</span>, <span class="ruby-value">:indent</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-value">4</span>, <span class="ruby-value">:truncate</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-keyword">true</span>)
  <span class="ruby-identifier">shell</span>.<span class="ruby-identifier">say</span>
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">send</span>(<span class="ruby-value">:class_options_help</span>, <span class="ruby-identifier">shell</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-console" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">console</span><span
                                class="method-args">(group = nil)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="console-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 521</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">console</span>(<span class="ruby-identifier">group</span> = <span class="ruby-keyword">nil</span>)
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/console&quot;</span>
  <span class="ruby-constant">Console</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>, <span class="ruby-identifier">group</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-doctor" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">doctor</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="doctor-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 706</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">doctor</span>
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/doctor&quot;</span>
  <span class="ruby-constant">Doctor</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-env" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">env</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="env-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 692</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">env</span>
  <span class="ruby-constant">Env</span>.<span class="ruby-identifier">write</span>(<span class="ruby-identifier">$stdout</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-exec" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">exec</span><span
                                class="method-args">(*args)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="exec-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 486</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">exec</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
  <span class="ruby-keyword">if</span> <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-string">&quot;--no-keep-file-descriptors&quot;</span>)
    <span class="ruby-constant">SharedHelpers</span>.<span class="ruby-identifier">major_deprecation</span>(<span class="ruby-value">2</span>, <span class="ruby-string">&quot;The `--no-keep-file-descriptors` has been deprecated. `bundle exec` no longer mess with your file descriptors. Close them in the exec&#39;d script if you need to&quot;</span>)
  <span class="ruby-keyword">end</span>

  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/exec&quot;</span>
  <span class="ruby-constant">Exec</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>, <span class="ruby-identifier">args</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-fund" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">fund</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="fund-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 433</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">fund</span>
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/fund&quot;</span>
  <span class="ruby-constant">Fund</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-help" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">help</span><span
                                class="method-args">(cli = nil)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              
                                <div class="method-calls-super">
                                  Calls superclass method
                                  
                              </div>

                              <div class="method-source-code" id="help-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 116</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">help</span>(<span class="ruby-identifier">cli</span> = <span class="ruby-keyword">nil</span>)
  <span class="ruby-keyword">case</span> <span class="ruby-identifier">cli</span>
  <span class="ruby-keyword">when</span> <span class="ruby-string">&quot;gemfile&quot;</span> <span class="ruby-keyword">then</span> <span class="ruby-identifier">command</span> = <span class="ruby-string">&quot;gemfile&quot;</span>
  <span class="ruby-keyword">when</span> <span class="ruby-keyword">nil</span>       <span class="ruby-keyword">then</span> <span class="ruby-identifier">command</span> = <span class="ruby-string">&quot;bundle&quot;</span>
  <span class="ruby-keyword">else</span> <span class="ruby-identifier">command</span> = <span class="ruby-node">&quot;bundle-#{cli}&quot;</span>
  <span class="ruby-keyword">end</span>

  <span class="ruby-identifier">man_path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-string">&quot;man&quot;</span>, <span class="ruby-identifier">__dir__</span>)
  <span class="ruby-identifier">man_pages</span> = <span class="ruby-constant">Hash</span>[<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">man_path</span>, <span class="ruby-string">&quot;**&quot;</span>, <span class="ruby-string">&quot;*&quot;</span>)).<span class="ruby-identifier">grep</span>(<span class="ruby-regexp">/.*\.\d*\Z/</span>).<span class="ruby-identifier">collect</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
    [<span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">f</span>, <span class="ruby-string">&quot;.*&quot;</span>), <span class="ruby-identifier">f</span>]
  <span class="ruby-keyword">end</span>]

  <span class="ruby-keyword">if</span> <span class="ruby-identifier">man_pages</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">command</span>)
    <span class="ruby-identifier">man_page</span> = <span class="ruby-identifier">man_pages</span>[<span class="ruby-identifier">command</span>]
    <span class="ruby-keyword">if</span> <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">which</span>(<span class="ruby-string">&quot;man&quot;</span>) <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">man_path</span> <span class="ruby-operator">!~</span> <span class="ruby-regexp">%r{^file:/.+!/META-INF/jruby.home/.+}</span>
      <span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">exec</span> <span class="ruby-node">&quot;man #{man_page}&quot;</span>
    <span class="ruby-keyword">else</span>
      <span class="ruby-identifier">puts</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-node">&quot;#{man_path}/#{File.basename(man_page)}.ronn&quot;</span>)
    <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">elsif</span> <span class="ruby-identifier">command_path</span> = <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">which</span>(<span class="ruby-node">&quot;bundler-#{cli}&quot;</span>)
    <span class="ruby-constant">Kernel</span>.<span class="ruby-identifier">exec</span>(<span class="ruby-identifier">command_path</span>, <span class="ruby-string">&quot;--help&quot;</span>)
  <span class="ruby-keyword">else</span>
    <span class="ruby-keyword">super</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-info" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">info</span><span
                                class="method-args">(gem_name)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="info-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 345</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">info</span>(<span class="ruby-identifier">gem_name</span>)
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/info&quot;</span>
  <span class="ruby-constant">Info</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>, <span class="ruby-identifier">gem_name</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-init" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">init</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="init-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 160</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">init</span>
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/init&quot;</span>
  <span class="ruby-constant">Init</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>.<span class="ruby-identifier">dup</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-inject" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">inject</span><span
                                class="method-args">(name, version)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="inject-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 649</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">inject</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">version</span>)
  <span class="ruby-constant">SharedHelpers</span>.<span class="ruby-identifier">major_deprecation</span> <span class="ruby-value">2</span>, <span class="ruby-string">&quot;The `inject` command has been replaced by the `add` command&quot;</span>
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/inject&quot;</span>
  <span class="ruby-constant">Inject</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>.<span class="ruby-identifier">dup</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">version</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-install" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">install</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="install-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 250</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">install</span>
  <span class="ruby-constant">SharedHelpers</span>.<span class="ruby-identifier">major_deprecation</span>(<span class="ruby-value">2</span>, <span class="ruby-string">&quot;The `--force` option has been renamed to `--redownload`&quot;</span>) <span class="ruby-keyword">if</span> <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-string">&quot;--force&quot;</span>)

  <span class="ruby-node">%w[clean deployment frozen no-prune path shebang system without with]</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">option</span><span class="ruby-operator">|</span>
    <span class="ruby-identifier">remembered_flag_deprecation</span>(<span class="ruby-identifier">option</span>)
  <span class="ruby-keyword">end</span>

  <span class="ruby-identifier">remembered_negative_flag_deprecation</span>(<span class="ruby-string">&quot;no-deployment&quot;</span>)

  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/install&quot;</span>
  <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">settings</span>.<span class="ruby-identifier">temporary</span>(<span class="ruby-value">:no_install</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-keyword">false</span>) <span class="ruby-keyword">do</span>
    <span class="ruby-constant">Install</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>.<span class="ruby-identifier">dup</span>).<span class="ruby-identifier">run</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-issue" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">issue</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="issue-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 712</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">issue</span>
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/issue&quot;</span>
  <span class="ruby-constant">Issue</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-licenses" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">licenses</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="licenses-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 544</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">licenses</span>
  <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">load</span>.<span class="ruby-identifier">specs</span>.<span class="ruby-identifier">sort_by</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">license</span>.<span class="ruby-identifier">to_s</span> }.<span class="ruby-identifier">reverse_each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span>
    <span class="ruby-identifier">gem_name</span> = <span class="ruby-identifier">s</span>.<span class="ruby-identifier">name</span>
    <span class="ruby-identifier">license</span>  = <span class="ruby-identifier">s</span>.<span class="ruby-identifier">license</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">licenses</span>

    <span class="ruby-keyword">if</span> <span class="ruby-identifier">license</span>.<span class="ruby-identifier">empty?</span>
      <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">warn</span> <span class="ruby-node">&quot;#{gem_name}: Unknown&quot;</span>
    <span class="ruby-keyword">else</span>
      <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">info</span> <span class="ruby-node">&quot;#{gem_name}: #{license}&quot;</span>
    <span class="ruby-keyword">end</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-list" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">list</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="list-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 335</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">list</span>
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/list&quot;</span>
  <span class="ruby-constant">List</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-lock" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">lock</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="lock-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 686</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">lock</span>
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/lock&quot;</span>
  <span class="ruby-constant">Lock</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-open" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">open</span><span
                                class="method-args">(name)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="open-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 514</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">open</span>(<span class="ruby-identifier">name</span>)
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/open&quot;</span>
  <span class="ruby-constant">Open</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>, <span class="ruby-identifier">name</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-outdated" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">outdated</span><span
                                class="method-args">(*gems)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="outdated-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 425</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">outdated</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">gems</span>)
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/outdated&quot;</span>
  <span class="ruby-constant">Outdated</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>, <span class="ruby-identifier">gems</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-platform" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">platform</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="platform-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 639</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">platform</span>
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/platform&quot;</span>
  <span class="ruby-constant">Platform</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-pristine" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">pristine</span><span
                                class="method-args">(*gems)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="pristine-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 723</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">pristine</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">gems</span>)
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/pristine&quot;</span>
  <span class="ruby-constant">Pristine</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">gems</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-remove" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">remove</span><span
                                class="method-args">(*gems)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="remove-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 192</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">remove</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">gems</span>)
  <span class="ruby-constant">SharedHelpers</span>.<span class="ruby-identifier">major_deprecation</span>(<span class="ruby-value">2</span>, <span class="ruby-string">&quot;The `--install` flag has been deprecated. `bundle install` is triggered by default.&quot;</span>) <span class="ruby-keyword">if</span> <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-string">&quot;--install&quot;</span>)
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/remove&quot;</span>
  <span class="ruby-constant">Remove</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">gems</span>, <span class="ruby-identifier">options</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-show" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">show</span><span
                                class="method-args">(gem_name = nil)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="show-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 324</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">show</span>(<span class="ruby-identifier">gem_name</span> = <span class="ruby-keyword">nil</span>)
  <span class="ruby-constant">SharedHelpers</span>.<span class="ruby-identifier">major_deprecation</span>(<span class="ruby-value">2</span>, <span class="ruby-string">&quot;the `--outdated` flag to `bundle show` was undocumented and will be removed without replacement&quot;</span>) <span class="ruby-keyword">if</span> <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-string">&quot;--outdated&quot;</span>)
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/show&quot;</span>
  <span class="ruby-constant">Show</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>, <span class="ruby-identifier">gem_name</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-update" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">update</span><span
                                class="method-args">(*gems)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="update-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 307</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">update</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">gems</span>)
  <span class="ruby-constant">SharedHelpers</span>.<span class="ruby-identifier">major_deprecation</span>(<span class="ruby-value">2</span>, <span class="ruby-string">&quot;The `--force` option has been renamed to `--redownload`&quot;</span>) <span class="ruby-keyword">if</span> <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-string">&quot;--force&quot;</span>)
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/update&quot;</span>
  <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">settings</span>.<span class="ruby-identifier">temporary</span>(<span class="ruby-value">:no_install</span> <span class="ruby-operator">=&gt;</span> <span class="ruby-keyword">false</span>) <span class="ruby-keyword">do</span>
    <span class="ruby-constant">Update</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>, <span class="ruby-identifier">gems</span>).<span class="ruby-identifier">run</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-version" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">version</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="version-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 528</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">version</span>
  <span class="ruby-identifier">cli_help</span> = <span class="ruby-identifier">current_command</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-string">&quot;cli_help&quot;</span>
  <span class="ruby-keyword">if</span> <span class="ruby-identifier">cli_help</span> <span class="ruby-operator">||</span> <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-string">&quot;version&quot;</span>)
    <span class="ruby-identifier">build_info</span> = <span class="ruby-node">&quot; (#{BuildMetadata.built_at} commit #{BuildMetadata.git_commit_sha})&quot;</span>
  <span class="ruby-keyword">end</span>

  <span class="ruby-keyword">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">cli_help</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">feature_flag</span>.<span class="ruby-identifier">print_only_version_number?</span>
    <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">info</span> <span class="ruby-node">&quot;#{Bundler::VERSION}#{build_info}&quot;</span>
  <span class="ruby-keyword">else</span>
    <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">info</span> <span class="ruby-node">&quot;Bundler version #{Bundler::VERSION}#{build_info}&quot;</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-viz" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">viz</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="viz-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 569</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">viz</span>
  <span class="ruby-constant">SharedHelpers</span>.<span class="ruby-identifier">major_deprecation</span> <span class="ruby-value">2</span>, <span class="ruby-string">&quot;The `viz` command has been renamed to `graph` and moved to a plugin. See https://github.com/rubygems/bundler-graph&quot;</span>
  <span class="ruby-identifier">require_relative</span> <span class="ruby-string">&quot;cli/viz&quot;</span>
  <span class="ruby-constant">Viz</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>.<span class="ruby-identifier">dup</span>).<span class="ruby-identifier">run</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                          </section>

                <section id="private-instance-5Buntitled-5D-method-details" class="method-section">
                <header>
                <h3>Private Instance Methods</h3>
                </header>

                  <div id="method-i-auto_install" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">auto_install</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              <p>Automatically invoke ‘bundle install` and resume if <a href="../Bundler.html#method-c-settings"><code>Bundler.settings[:auto_install]</code></a> exists. This is set through config cmd `bundle config set –global <a href="CLI.html#method-i-auto_install"><code>auto_install</code></a> 1`.</p>

<p>Note that this method ‘nil`s out the global <a href="Definition.html"><code>Definition</code></a> object, so it should be called first, before you instantiate anything like an `Installer` that’ll keep a reference to the old one instead.</p>

                              <div class="method-source-code" id="auto_install-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 804</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">auto_install</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">settings</span>[<span class="ruby-value">:auto_install</span>]

  <span class="ruby-keyword">begin</span>
    <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">definition</span>.<span class="ruby-identifier">specs</span>
  <span class="ruby-keyword">rescue</span> <span class="ruby-constant">GemNotFound</span>
    <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">info</span> <span class="ruby-string">&quot;Automatically installing missing gems.&quot;</span>
    <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">reset!</span>
    <span class="ruby-identifier">invoke</span> <span class="ruby-value">:install</span>, []
    <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">reset!</span>
  <span class="ruby-keyword">end</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-current_command" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">current_command</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="current_command-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 817</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">current_command</span>
  <span class="ruby-identifier">_</span>, <span class="ruby-identifier">_</span>, <span class="ruby-identifier">config</span> = <span class="ruby-ivar">@_initializer</span>
  <span class="ruby-identifier">config</span>[<span class="ruby-value">:current_command</span>]
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-flag_deprecation" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">flag_deprecation</span><span
                                class="method-args">(name, flag_name, option)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="flag_deprecation-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 880</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">flag_deprecation</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">flag_name</span>, <span class="ruby-identifier">option</span>)
  <span class="ruby-identifier">name_index</span> = <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">find</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">arg</span><span class="ruby-operator">|</span> <span class="ruby-identifier">flag_name</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">arg</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">&quot;=&quot;</span>)[<span class="ruby-value">0</span>] }
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">name_index</span>

  <span class="ruby-identifier">value</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">name</span>]
  <span class="ruby-identifier">value</span> = <span class="ruby-identifier">value</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&quot; &quot;</span>).<span class="ruby-identifier">to_s</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">option</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value">:array</span>

  <span class="ruby-constant">Bundler</span><span class="ruby-operator">::</span><span class="ruby-constant">SharedHelpers</span>.<span class="ruby-identifier">major_deprecation</span> <span class="ruby-value">2</span>,
    <span class="ruby-node">&quot;The `#{flag_name}` flag is deprecated because it relies on being &quot;</span> \
    <span class="ruby-string">&quot;remembered across bundler invocations, which bundler will no longer &quot;</span> \
    <span class="ruby-node">&quot;do in future versions. Instead please use `bundle config set --local #{name.tr(&quot;-&quot;, &quot;_&quot;)} &quot;</span> \
    <span class="ruby-node">&quot;&#39;#{value}&#39;`, and stop using this flag&quot;</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-gem" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">gem</span><span
                                class="method-args">(name)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="gem-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 597</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">gem</span>(<span class="ruby-identifier">name</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-print_command" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">print_command</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="print_command-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 822</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">print_command</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">debug?</span>
  <span class="ruby-identifier">cmd</span> = <span class="ruby-identifier">current_command</span>
  <span class="ruby-identifier">command_name</span> = <span class="ruby-identifier">cmd</span>.<span class="ruby-identifier">name</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">PARSEABLE_COMMANDS</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">command_name</span>)
  <span class="ruby-identifier">command</span> = [<span class="ruby-string">&quot;bundle&quot;</span>, <span class="ruby-identifier">command_name</span>] <span class="ruby-operator">+</span> <span class="ruby-identifier">args</span>
  <span class="ruby-identifier">options_to_print</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">dup</span>
  <span class="ruby-identifier">options_to_print</span>.<span class="ruby-identifier">delete_if</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">v</span><span class="ruby-operator">|</span>
    <span class="ruby-keyword">next</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">o</span> = <span class="ruby-identifier">cmd</span>.<span class="ruby-identifier">options</span>[<span class="ruby-identifier">k</span>]
    <span class="ruby-identifier">o</span>.<span class="ruby-identifier">default</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">v</span>
  <span class="ruby-keyword">end</span>
  <span class="ruby-identifier">command</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">Thor</span><span class="ruby-operator">::</span><span class="ruby-constant">Options</span>.<span class="ruby-identifier">to_switches</span>(<span class="ruby-identifier">options_to_print</span>.<span class="ruby-identifier">sort_by</span>(<span class="ruby-operator">&amp;</span><span class="ruby-value">:first</span>)).<span class="ruby-identifier">strip</span>
  <span class="ruby-identifier">command</span>.<span class="ruby-identifier">reject!</span>(<span class="ruby-operator">&amp;</span><span class="ruby-value">:empty?</span>)
  <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">info</span> <span class="ruby-node">&quot;Running `#{command * &quot; &quot;}` with bundler #{Bundler::VERSION}&quot;</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-remembered_flag_deprecation" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">remembered_flag_deprecation</span><span
                                class="method-args">(name)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="remembered_flag_deprecation-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 873</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">remembered_flag_deprecation</span>(<span class="ruby-identifier">name</span>)
  <span class="ruby-identifier">option</span> = <span class="ruby-identifier">current_command</span>.<span class="ruby-identifier">options</span>[<span class="ruby-identifier">name</span>]
  <span class="ruby-identifier">flag_name</span> = <span class="ruby-identifier">option</span>.<span class="ruby-identifier">switch_name</span>

  <span class="ruby-identifier">flag_deprecation</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">flag_name</span>, <span class="ruby-identifier">option</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-remembered_negative_flag_deprecation" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">remembered_negative_flag_deprecation</span><span
                                class="method-args">(name)</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="remembered_negative_flag_deprecation-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 865</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">remembered_negative_flag_deprecation</span>(<span class="ruby-identifier">name</span>)
  <span class="ruby-identifier">positive_name</span> = <span class="ruby-identifier">name</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/\Ano-/</span>, <span class="ruby-string">&quot;&quot;</span>)
  <span class="ruby-identifier">option</span> = <span class="ruby-identifier">current_command</span>.<span class="ruby-identifier">options</span>[<span class="ruby-identifier">positive_name</span>]
  <span class="ruby-identifier">flag_name</span> = <span class="ruby-string">&quot;--no-&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">option</span>.<span class="ruby-identifier">switch_name</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/\A--/</span>, <span class="ruby-string">&quot;&quot;</span>)

  <span class="ruby-identifier">flag_deprecation</span>(<span class="ruby-identifier">positive_name</span>, <span class="ruby-identifier">flag_name</span>, <span class="ruby-identifier">option</span>)
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                  <div id="method-i-warn_on_outdated_bundler" class="method-detail ">
                            <div class="method-heading">
                              <span class="method-name">warn_on_outdated_bundler</span><span
                                class="method-args">()</span>
                              <span class="method-click-advice">click to toggle source</span>
                            </div>

                            <div class="method-description">
                              

                              <div class="method-source-code" id="warn_on_outdated_bundler-source">
            <pre><span class="ruby-comment"># File bundler/cli.rb, line 838</span>
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">warn_on_outdated_bundler</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">settings</span>[<span class="ruby-value">:disable_version_check</span>]

  <span class="ruby-identifier">command_name</span> = <span class="ruby-identifier">current_command</span>.<span class="ruby-identifier">name</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span> <span class="ruby-constant">PARSEABLE_COMMANDS</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">command_name</span>)

  <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-constant">SharedHelpers</span>.<span class="ruby-identifier">md5_available?</span>

  <span class="ruby-identifier">latest</span> = <span class="ruby-constant">Fetcher</span><span class="ruby-operator">::</span><span class="ruby-constant">CompactIndex</span>.
           <span class="ruby-identifier">new</span>(<span class="ruby-keyword">nil</span>, <span class="ruby-constant">Source</span><span class="ruby-operator">::</span><span class="ruby-constant">Rubygems</span><span class="ruby-operator">::</span><span class="ruby-constant">Remote</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">Bundler</span><span class="ruby-operator">::</span><span class="ruby-constant">URI</span>(<span class="ruby-string">&quot;https://rubygems.org&quot;</span>)), <span class="ruby-keyword">nil</span>).
           <span class="ruby-identifier">send</span>(<span class="ruby-value">:compact_index_client</span>).
           <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-value">:@cache</span>).
           <span class="ruby-identifier">dependencies</span>(<span class="ruby-string">&quot;bundler&quot;</span>).
           <span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">d</span><span class="ruby-operator">|</span> <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Version</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">d</span>.<span class="ruby-identifier">first</span>) }.
           <span class="ruby-identifier">max</span>
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">latest</span>

  <span class="ruby-identifier">current</span> = <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Version</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">VERSION</span>)
  <span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">current</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-identifier">latest</span>

  <span class="ruby-constant">Bundler</span>.<span class="ruby-identifier">ui</span>.<span class="ruby-identifier">warn</span> \
    <span class="ruby-node">&quot;The latest bundler is #{latest}, but you are currently running #{current}.\n&quot;</span> \
    <span class="ruby-string">&quot;To update to the most recent version, run `bundle update --bundler`&quot;</span>
<span class="ruby-keyword">rescue</span> <span class="ruby-constant">RuntimeError</span>
  <span class="ruby-keyword">nil</span>
<span class="ruby-keyword">end</span></pre>
                              </div>
                            </div>


                          </div>

                          </section>

              </section>
              </main>



            </div>  <!--  class='wrapper hdiv' -->


<footer id="validator-badges" role="contentinfo">
<p><a href="https://validator.w3.org/check/referer">Validate</a></p>
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.4.0.</p>
<p>Based on <a href="https://github.com/ged/darkfish/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</p>

  
    <p><p><a href="https://ruby-doc.org">Ruby-doc.org</a> is provided by <a href="https://jamesbritt.com">James Britt</a> and <a href="https://neurogami.com">Neurogami</a>. </p><p><a href="https://jamesbritt.bandcamp.com/">Hack your world.  Feed your head.  Live curious</a>.</p>
</p>
  
  </footer>

<script type="text/javascript">


  let ads  = $("#carbonads-container").children().detach();


  function swapMode() {
    var cookieName = 'darkmode';
    var cssDarkmode = Cookies.get(cookieName);
    console.log("***** swapMode! " + cssDarkmode + " *****");


    if (cssDarkmode == "true") {
      console.log("We have dark mode, set the css to light ...");
      $('#rdoccss').attr("href", defaultModeCssHref);
      $('#cssSelect').text("Dark mode");
      cssDarkmode = "false";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    } else {
      console.log("We not have dark mode, set the css to dark ...");
      $('#rdoccss').attr("href", darkModeCsseHref);
      $('#cssSelect').text("Light mode");
      cssDarkmode = "true";
      console.log("swapMode! Now set cookie to " + cssDarkmode);
      Cookies.set(cookieName, cssDarkmode);

    }

    console.log("  --------------- ");
  }


const vueCssApp = new Vue({
el: '#menubar',
data: {
isDark: false
},
methods: {
toggleClass: function(event){
this.isDark = !this.isDark;
}
}
})

const vueApp = new Vue({
el: '#vapp',
data: { 
isOpen: true
},

mounted() {
this.handleResize();
this.manage_mob_classes();
window.addEventListener('resize', this.handleResize)
//this.isOpen !=  (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},
destroyed() {
window.removeEventListener('resize', this.handleResize)
},
created() {
//manage_mob_classes();
},

methods : {
isMobile() {
  return (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));
},

  handleResize() {
    if (!this.isMobile()) {
      this.isOpen = window.innerWidth > 800;
    }
  },

  manage_mob_classes() {
    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
      $("nav").addClass("mob_nav");
      $("main").addClass("mob_main");
      $("#extraz").addClass("mob_extraz");
      $("#carbonads-container").addClass("mob_carbonads-container");
      this.isOpen  = false;
    } else {
      $("nav").removeClass("mob_nav") 
        $("main").removeClass("mob_main");
      $("#extraz").removeClass("mob_extraz");
      $("#carbonads-container").removeClass("mob_carbonads-container");
      this.isOpen  = true;
    }
  },

  toggleNav() {
    this.isOpen =! this.isOpen ;
    // alert("Toggle nav!");
    console.log("toggleNav() click: " + this.isOpen );
  }
}
})

$("#carbonads-container").append(ads);


$(function() {

    var darkmode = Cookies.get("darkmode");
    console.log("Document ready: " + darkmode);

    if ( darkmode  == "true" ) {
      $('#cssSelect').text("Light mode");
    } else {
      $('#cssSelect').text("Dark mode");
     }

    $('body').css('display','block');
    });

</script>

    
  </body> 
</html>

